<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
	<title>Login</title>

	
	

	<SCRIPT TYPE="text/javascript">

	    function submitenter(myfield,e)
	    {
	        var keycode;
	        if (window.event) keycode = window.event.keyCode;
	        else if (e) keycode = e.which;
	        else return true;

	        if (keycode == 13)
	        {
	            myfield.form.submit();
	            return false;
	        }
	        else
	            return true;
	    }
	    

	    $(document).ready(function () {
	        $("#j_username").focus(); 
	    });


	</script>
	
	<style TYPE="text/css">
	</style>
	
</head>
<body>



<div id="win" class="easyui-window" title="Login" style="width:400px;height:200px;" data-options="modal:true, collapsible: false, minimizable: false, maximizable: false, closable: false">
    <form id="loginform" style="padding:10px 20px 10px 40px;" action="j_spring_security_check" method='POST'>
    	<table style="width:100%">
    		<tr>
    		<td>Name: </td>
    		<td> <input name='j_username' id='j_username' type="text"></td>
    		</tr>
    		<tr>
    		<td>Password: </td>
    		<td><input name='j_password'  type="password" onKeyPress="return submitenter(this,event)"></td>
    		</tr>
    		<tr>
    		<td colspan="2">
		        <div style="padding:10px;text-align:center;">
		            <a href="#" class="easyui-linkbutton" icon="icon-ok" onclick="$('#loginform').submit()">Ok</a>
		            <a href="#" class="easyui-linkbutton" icon="icon-cancel">Cancel</a>
		        </div>
        	</td>
        	</tr>
        	<td colspan="2" style="color: red">
        		<c:out value="${loginStatus}" />
        	</td>
        </table>
        
    </form>
</div></body>
</html>
